import React from 'react';
import { Card, Result } from 'antd';
import { GridContent } from '@ant-design/pro-layout';

export const AxSuccess: React.FC<any> = props => {
  const { title = '保存成功', subTitle, content, extra } = props;

  return (
    <GridContent>
      <Card bordered={false}>
        <Result
          status="success"
          title={title}
          subTitle={subTitle}
          extra={extra}
          style={{ marginBottom: 16 }}
        >
          {content}
        </Result>
      </Card>
    </GridContent>
  );
};
